package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 *      运营-操作日志冷数据实体类
 * </desc>
 *
 * @createDate 2017/10/16
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ItlTables("cold_data_operation_log")
public class ColdDataOperationLogPO extends BasePO implements Serializable{
    @ItlField("account")
    private String account;                //账号
    @ItlField("real_name")
    private String realName;                //姓名
    @ItlField("ip")
    private String ip;                      //操作员ip地址
    @ItlField("system_type")
    private Integer systemType;             //系统类型 1运营 2物业 3IOS 4安卓
    @ItlField("operation_use")
    private String operationUse;             //操作用途
    @ItlField("url")
    private String url;                      //访问路径

    /**
     * <desc>
     *     旧版APP_运行日志上传
     * </desc>
     * @param account
     * @param realName
     * @param systemType
     * @param operationUse
     */
    public ColdDataOperationLogPO(String account, String realName, Integer systemType, String operationUse){
        this.account = account;
        this.realName = realName;
        this.systemType = systemType;
        this.operationUse = operationUse;
    }

    public ColdDataOperationLogPO(Integer id,String account,String realName,String ip,Integer systemType,String operationUse,String url,Integer status,Date createTime,Date updateTime){
        this.setId(id);
        this.account = account;
        this.realName = realName;
        this.ip = ip;
        this.systemType = systemType;
        this.operationUse = operationUse;
        this.url = url;
        this.setStatus(status);
        this.setCreateTime(createTime);
        this.setUpdateTime(updateTime);
    }


}
